package com.han.singleton.demo3;



/**
 * @ClassName Client
 * @Description 描述该类的功能
 * @Author duoduo Han
 * @Date 2024/6/3 10:36
 */
public class Client {
    public static void main(String[] args) {
        //创建Singleton类的对象
        Singleton instance = Singleton.getInstence();
        Singleton instance1 = Singleton.getInstence();
        //比较两个对象是否是同一个对象
        System.out.println(instance == instance1);
    }
}
